package com.android.aishangauction.model.auction;

import com.android.aishangauction.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/11/6.
 */

public abstract class Auction_OrderDetailDataCallback extends Callback<Auction_OrderDetailData> {

    @Override
    public Auction_OrderDetailData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("Auction_OrderDetailData",string);
        Auction_OrderDetailData data = new Gson().fromJson(string,Auction_OrderDetailData.class);
        return data;
    }
}


